package guo.redisson.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestApplication {
    
    @Autowired
    private ApplicationContext applicationContext;
    
    
    @GetMapping("/test")
    public void test1(){
        String[] beanDefinitionNames = applicationContext.getBeanDefinitionNames();
        System.out.println(beanDefinitionNames.length);
        
        for (String s:beanDefinitionNames){

            System.out.println("s = " + s);
        }
    }
}

